package org.mzy.pet.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.mzy.basic.domain.BaseDomain;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author mzy
 * @since 2022-10-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class PetType extends BaseDomain {


    private String name;
    private String description;
    /**
     * 父类型id
     */
    private Long pid;
    // 子类数据类型
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<PetType> children = new ArrayList<>();
    // 子类名
    private String pname;
    // 上级类型
    private PetType petType;
}

